package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 这是学生个人信息表
 * </p>
 *
 * @author cft
 * @since 2022-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pcs_stu_info")
@ApiModel(value="StuInfo对象", description="这是学生个人信息表")
public class StuInfo extends Model<StuInfo> {

    private static final long serialVersionUID = 1L;

    @TableId("stu_id")
    private Long stuId;

    private String name;

    private String gender;

    private String college;

    private String email;

    private String capmus;

    private String origin;

    private String degree;

    private String emContanct;

    private Long emConPhone;

    private String emConRelate;


    @Override
    protected Serializable pkVal() {
        return this.stuId;
    }

    public boolean checkInfo(){
        if(this.stuId==null||this.name==null||this.gender==null||this.college==null||this.email==null
                ||this.capmus==null||this.origin==null||this.degree==null||this.emContanct==null||this.emConPhone==null||this.emConRelate==null){
            return true;
        }
        else{
            return false;
        }
    }

}
